<%-- 
    Document   : addFilm
    Created on : 16 avr. 2010, 16:36:04
    Author     : SaLaH
--%>

<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
         <link rel="stylesheet" href="style.css" type="text/css" media="screen" />
        <script type="text/javascript" src="cart.js"></script>
        <title>CinéShop</title>
    </head>

    <body>
    <div class="PageBackgroundGradient"></div>
    <div class="Main">
        <div class="Sheet">
            <div class="Sheet-tl"></div>
            <div class="Sheet-tr"><div></div></div>
            <div class="Sheet-bl"><div></div></div>
            <div class="Sheet-br"><div></div></div>
            <div class="Sheet-tc"><div></div></div>
            <div class="Sheet-bc"><div></div></div>
            <div class="Sheet-cl"><div></div></div>
            <div class="Sheet-cr"><div></div></div>
            <div class="Sheet-cc"></div>
            <div class="Sheet-body">
              <%@include file="header.jsp" %>
                <div class="contentLayout">
              <%@include file="menu.jsp" %>
                    <div class="content">
                        <div class="cart"> <a href="ServletPanier"><img src="images/Shopping_Cart.png" alt="" title="Panier"></a></div>
                  
   
                        <c:set var="stockLabel" value="En Stock"/>
                        <c:set var="availabiltyCSS" value="available"/>
                        <c:if test="${not film.disponibilite}">
                            <c:set var="availabiltyCSS" value="notAvailable"/>
                            <c:set var="stockLabel" value="Rupture de stock"/>
                        </c:if>
           <form action="ServletPanier" method="post">
               <table border="0" width="100%">
                        
                                <tr>
                                    <td width="30%"><h2>${film.titre}</h2</td>
                                    <td align="center">
                                         <div>
                                          <button class="Button" type="submit" name="Ajouter">
                                                <span class="btn">
                                                    <span class="t">Ajouter au Panier</span>
                                                    <span class="r"><span></span></span>
                                                    <span class="l"></span>
                                                </span>
                                        </button>
                                        </div>

                                       </td>
                                </tr>
                      
                            <tbody>
                                <tr>
                                    <td>
                                        <img src="images/films/${film.image}"  alt="">
                                    </td>
                                    <td>
                                        <h3> ${film.prix} €</h3>
                                        
                                         ${film.resume}<br/><br/>

                                         <span class="${availabiltyCSS}">${stockLabel}</span>
                                         <br>
                                          Quantité restante: ${film.quantite}
                                          <br>


                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <div class="cart">   <a href="javascript:" onclick="history.go(-1); return false">Retour liste Films</a> </div>
                                    </td>
                                
                                      
                                </tr>
                            </tbody>
                            <tbody>
                                <tr>
                                    <td></td>
                                    <td></td>
                                    <td>
                                        <input type="hidden" name="filmId" value=${film.id}>
                                      
                                    </td>
                                </tr>
                            </tbody>
               </table>


                    </form>


                    </div>
                </div>

            </div>
        </div>

    </div>

</body>

</html>

